<?php

class AuthController extends Sb_Controller_Action
{


    public function indexAction()
    {
       $this->_forward( 'login' );
    }

    public function loginAction()
    {
    	$this->view->pageTitle = 'Welcome to AdsMarket';
    	$formParams = array(
    		'textSubmit' => 'Login',
    		'legend' => 'Users Login',
    		'action'	=> $this->view->url(array(
    			'action' => 'login',
    			'controller' => 'auth'
    		),false)
    	);
    	$this->view->form = new Form_Login( $formParams );
    	if($this->view->form->isSubmit( ) && $this->view->form->isValid( $this->_request->getPost( ) )){
    		
    	}
    }

    public function logoutAction()
    {
        // action body
    }


}





